if (state.equals("BATTLE")) {
        g.setColor(new Color(20, 12, 28));
        g.fillRect(0, 0, 700, 560);

        g.setColor(Color.WHITE);
        g.setFont(new Font("Arial", Font.BOLD, 22));
        g.drawString(hero.getName(), 60, 380);
        g.drawString(foe.name, 470, 140);

        drawBar(g, 60, 392, hero.getHp(), hero.getMaxHp());
        drawBar(g, 470, 152, foe.hp, foe.maxHp);

        g.drawString(battleLog, 60, 280);
        g.drawString("[A]ttack   [D]efend   [P]otion   [F]lee", 60, 500);
        return;   // skip drawing the map
    }

    void drawBar(Graphics g, int x, int y, int val, int max) {
        g.setColor(Color.RED);           g.fillRect(x, y, 150, 14);
        g.setColor(new Color(6,214,160)); g.fillRect(x, y, 150 * val / max, 14);
    }